<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp" %>
<% 
   //接收参数
    String instID=request.getParameter("instID");
   //根据参数读取数据库响应记录
   Connection conn=getConn();
   String sql="select * from sys_instructorinfo where instID=?";
   PreparedStatement pstmt=conn.prepareStatement(sql);
   pstmt.setString(1, instID);
   ResultSet rs=pstmt.executeQuery();
   String rs_instID="";
   String rs_instName ="";
   String rs_institude  ="";
   String rs_depID  ="";
   String rs_telephone  ="";

   if(rs.next()){
	   
	   rs_instID =rs.getString("instID");
	   rs_instName =rs.getString("instName");
	   rs_institude=rs.getString("institude");
	   rs_depID=rs.getString("depID");
	   rs_telephone=rs.getString("telephone");
   }
   
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>辅导员个人信息</title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<link rel="shortcut icon" href="images/logo.jpg">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
<script type="text/javascript">
	function ch(){
		alert("修改成功!");
	}
</script>
</head>

<body align="center">

<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>编辑辅导员个人信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="page/instructor/action_editinstructor1.jsp">  
      <div class="form-group">
        <div class="label">
          <label>工号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_instID %>" name="instID" required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>辅导员姓名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_instName %>" name="instName" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>所属学院：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_institude %>" name="institude" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
        <div class="form-group">
        <div class="label">
          <label>二级学院编号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_depID %>" name="depID" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
   
 	<div class="form-group">
        <div class="label">
          <label>电话号码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_telephone %>" name="telephone" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit" onclick="ch()"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>
